﻿@using FwProject.BrandInfo.Dto
@using FwProject.ShoppingMall.BrandInfo
@model BrandInput
@{
    ViewBag.Title = "添加品牌";
    Layout = null;
}
<h2>@ViewBag.Title</h2>
<form action="@Url.Action("CreateBrand")" method="post" novalidate="novalidate" data-ajax="true" data-ajax-begin="LockAjaxCallbackBack" data-ajax-success="ReloadAjaxCallbackgoback" data-ajax-failure="FailureAjaxCallback" data-ajax-method="Post" role="form" lay-filter="form1">
    @Html.AntiForgeryToken()
    <div class="deploy-form layui-form">
        <div class="layui-form-group">
            @Html.LabelFor(o => o.BrandName, new { @class = "layui-form-label" })
            <div class="layui-input-block">
                @Html.TextBoxFor(o => o.BrandName, new { @class = "layui-input" })
                @Html.ValidationMessageFor(o => o.BrandName)
            </div>
        </div>
        <div class="layui-form-group">
            @Html.LabelFor(o => o.Levetype, new { @class = "layui-form-label" })
            <div class="layui-input-block">
                <enums class="layui-input layui-unselect" asp-name="Levetype" asp-valuetype="1" asp-enum="typeof(LeveTypeEnum)"></enums>
                @Html.ValidationMessageFor(o => o.Levetype)
            </div>
        </div>
        <div class="layui-form-group">
            @Html.LabelFor(o => o.NoteContent, new { @class = "layui-form-label" })
            <div class="layui-input-block">
                @Html.TextAreaFor(o => o.NoteContent, new { @class = "layui-textarea" })
                @Html.ValidationMessageFor(o => o.NoteContent)
            </div>
        </div>

        <div class="layui-form-group">
            @Html.LabelFor(o => o.BrandLogo, new { @class = "layui-form-label" })
            <div class="layui-input-block layui-upload">
                <button type="button" class="layui-btn layui-btn-sm layui-btn-normal" id="b_piclogo" data-src="#piclogoImg">选择图片</button>
                <img class="layui-upload-img" id="piclogoImg">
                @Html.TextBoxFor(o => o.BrandLogo, new { @class = "hidden" })
                @Html.ValidationMessageFor(o => o.BrandLogo)
            </div>
        </div>

        <div class="layui-form-group">
            @Html.LabelFor(o => o.Orders, new { @class = "layui-form-label" })
            <div class="layui-input-block">
                @Html.TextBoxFor(o => o.Orders, new { @class = "layui-input" })
                @Html.ValidationMessageFor(o => o.Orders)
            </div>
        </div>
        <div class="layui-plus">
            <button type="submit" name="" class="layui-btn layui-btn-sm layui-btn-normal">确认添加</button>
        </div>
    </div>
</form>